{if $pager->getPages() > 1}
<ul class="pages fr">
  {if $pager->getPage() > 1}
      <li><a href="{$pager->link($pager->prev())}" class="prev"><span>prev</span></a></li>
  {/if}
  
	{foreach $pager->getPagesArray(10) as $val}
	  {if $pager->getPage() == $val}
	    <li class="pgCurrent">{$val}</li>
	  {else}
	  <li><a href="{$pager->link($val)}">{$val}</a></li>
	  {/if}
	{/foreach}
	
  {if $pager->getPage() < $pager->getPages()}
      <li><a href="{$pager->link($pager->next())}" class="next"><span>next</span></a></li>
  {/if}
</ul>
{/if}